from pptx import Presentation

ppt = Presentation('客户报表.pptx')
for index, slide in enumerate(ppt.slides):
    print(f'========第{index +1}页==========')
    print(f'===共有{len(slide.shapes)}个shapes')
    for shape in slide.shapes:
        print(f'--shape start--')
        if shape.has_text_frame:
            print(shape.text_frame.text)
        else:
            print(shape)